package com.edu.dao.impl;

import com.edu.bean.MyDataSource;
import com.edu.dao.UserDao;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

/**
 * @Author:zyn
 * @Date:2025/11/4--9:06:10
 */
//@Repository
public class UserDaoImpl2 implements UserDao {
    @Resource
    private MyDataSource myDataSource;
    @Override
    public void selectUser() {
        System.out.println("执行了userDao的查询方法2");
        myDataSource.getConnection();
    }
}
